<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>视频</title>
</head>
<style>
    video{
        width: 1500px;
        height: 800px;
        margin-left: 200px;
    }

    button{
        display: inline-block;
        outline: none;
        cursor: pointer;
        text-align: center;
    }
</style>
<body>
    <video src="./images/vi/movie.mp4" autoplay controls loop></video>
    <video src="./images/vi/movie.mp4"  autoplay controls ></video>
    <video id="myVIdeo" src="./images/vi/movie.mp4" autoplay  loop></video>
    <br>
    <input id="platpause" type="button" value="播放/暂停" onclick="playpause()">
</body>

<script>
    var myVideo=document.getElementById("myVIdeo")

    function playpause(){
        if(myVideo.paused)
           myVideo.play();
        else
           myVideo.pause();
    }
</script>
</html>